package com.huawei.classroom.student.h06;

public class Dog extends Base{
	public Dog(int x,int y) {
		super(50,5,5,x,y);
	}
	public void attack(Soldier s) {
		if(ar<getDistance(s)) return ;
		if(s.hp>0) {
			s.hp=0;
			Soldier.setDeadSoldier();
		}
	}
}